package com.cskaoyan.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/06/01 11:46
 */
@RestController
public class HelloController {

    @RequestMapping("hello")
    public String hello() {
        String result = "hello handler";
        System.out.println(result);
        return result;
    }

    @RequestMapping("login")
    public String login(String username, String password) {
        System.out.println("username = " + username);
        System.out.println("password = " + password);
        return "ok";
    }
}
